//
//  JW_CollectionViewCell.m
//  JWMovie
//
//  Created by Jorn.Wu on 15/7/23.
//  Copyright (c) 2015年 Jorn.Wu. All rights reserved.
//

#import "JW_CollectionViewCell.h"
#import "JW_ScrollView.h"

#define JWScreenWidth [UIScreen mainScreen].bounds.size.width
#define JWScreenHeight [UIScreen mainScreen].bounds.size.height
@interface JW_CollectionViewCell ()



@end

@implementation JW_CollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        _scrollView = [[JW_ScrollView alloc] initWithFrame:self.bounds];
        [self.contentView addSubview:_scrollView];
    }
    return self;
}

- (void)setImageUrlStr:(NSString *)imageUrlStr{
    _imageUrlStr = imageUrlStr;
    self.scrollView.imageUrlStr = _imageUrlStr;
    [self setNeedsLayout];
}
- (void)layoutSubviews{
    self.scrollView.frame = self.bounds;
}

@end
